package io.jee.runshan.domain;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * 订单联系人
 * 
 * @Created: 2015年1月23日
 * @Last_modified: 2015年1月23日 上午11:46:46
 * @Last_modified_by: ynshun
 * @Create_by: ynshun
 *
 */
@Entity
@Table(name = "runshan_order_contact")
@JsonIgnoreProperties(value = { "vip" })
public class OrderContact {
	private Integer id;
	private String name; // 联系人姓名
	private String address; // 地址
	private String mobile; // 联系电话
	private String extMobile; // 临时联系电话
	private String alipayAccount; // 支付宝账号（必填）
	private String wxAccount; // 微信账号
	private String wxNikename; // 微信昵称
	private String wxOpenid;
	private VIP vip;
	private String memo;

	@Id
	@GeneratedValue
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getExtMobile() {
		return extMobile;
	}

	public void setExtMobile(String extMobile) {
		this.extMobile = extMobile;
	}

	public String getAlipayAccount() {
		return alipayAccount;
	}

	public void setAlipayAccount(String alipayAccount) {
		this.alipayAccount = alipayAccount;
	}

	public String getWxAccount() {
		return wxAccount;
	}

	public void setWxAccount(String wxAccount) {
		this.wxAccount = wxAccount;
	}

	public String getWxNikename() {
		return wxNikename;
	}

	public void setWxNikename(String wxNikename) {
		this.wxNikename = wxNikename;
	}

	public String getWxOpenid() {
		return wxOpenid;
	}

	public void setWxOpenid(String wxOpenid) {
		this.wxOpenid = wxOpenid;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	public VIP getVip() {
		return vip;
	}

	public void setVip(VIP vip) {
		this.vip = vip;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

}
